<?php
	if(is_array($_POST['topic_id'])) {
		$topic_id = $_POST['topic_id'];
		$sql = "UPDATE `tbl_webboard` SET `status` = '2' WHERE `topic_id` IN (". implode (',',$topic_id) .")";
	} else { 
		$topic_id = $params[0]; 
		$sql = "UPDATE `tbl_webboard` SET `status` = '2' WHERE `topic_id` = '$topic_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>